var windowName = "mapTop";
var Page, map
apiready = function () {
    onWindowHide(function () {
    })
    console.log("index page is OK");
    Page = createVM("#Page", {
        //页面数据
        search:""
    }, {
        //页面方法
        "init": function () {

        },
        test:function () {
            updateFrameData()
        }
    })

    Page.init()

}

function updateFrameData(index) {
    var jsfun = 'test();';
    api.execScript({
        frameName: "map",
        script: jsfun
    });
}
